<template>
	<view>
		<view class="success-box">
			<view class="tip-top-box">
				<view class="tip-icon-box">
					<u-icon name="checkmark" color="#FFF" size="80rpx"></u-icon>
				</view>
				<text class="text">添加成功</text>
			</view>
			<view class="tip-button-box">
				<view class="this-button" @click="backViewClick">返回详情</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				// 案例类型 id
				case_type_id: 0,
				// 案例类型文字描述
				case_type: ''
			};
		},
		onLoad(options) {
			this.case_type_id = options.case_type_id
			this.case_type = options.case_type
		},
		methods: {
			// 返回详情按钮的点击事件，跳转到类型案件汇总页面
			backViewClick() {
				this.$u.vuex('vuex_isSubmit', true)
				this.$u.route({
					type: 'back',
					delta: 2,
				})
				// this.$u.route({
				// 	type: 'redirectTo',		// 关闭当前页面跳转到类型案件汇总页面
				// 	url: '/myPackageA/pages/views/case-teyp-sum',		// 跳转到案例类型汇总页面（正常会更新出用户刚添加的该条案例）
				// 	params: {
				// 		case_type_id: this.case_type_id,	// 将案例类型 id 传递过去
				// 		case_type: this.case_type
				// 	}
				// })
			}
		}
	}
</script>

<style lang="scss" scoped>
.success-box {
	width: 750rpx;
	height: 554rpx;
	margin-top: 111rpx;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	.tip-top-box {
		height: 220rpx;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		align-items: center;
		.tip-icon-box {
			width: 120rpx;
			height: 120rpx;
			border-radius: 50%;
			background-color: $u-text-color;
			display: flex;
			justify-content: center;
			align-items: center;
		}
		.text {
			font-size: 38rpx;
			font-family: PingFang SC;
			font-weight: 400;
			color: #999999;
		}
	}
}
.tip-button-box {
	.this-button {
		width: 364rpx;
		height: 96rpx;
		line-height: 96rpx;
		border-radius: 48rpx;
		background-color: $u-text-color;
		font-size: 32rpx;
		font-family: Adobe Heiti Std;
		font-weight: normal;
		color: #FFFFFF;
		text-align: center;
		
	}
}
</style>
